//
//  UILabel+FontSize.m
//  CET4Words
//
//  Created by lanou3g on 15/11/18.
//  Copyright © 2015年 yangyanyan. All rights reserved.
//

#import "UILabel+FontSize.h"

@implementation UILabel (FontSize)

-(CGSize)settingSize:(NSString *)textString {
    
    CGRect fontFrame = [textString boundingRectWithSize:CGSizeMake(MAXFLOAT, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:20]} context:nil];
    return fontFrame.size;
}


@end
